package com.cd.song.jpa.domain;

import com.cd.common.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @Description 歌曲标签表
 * @Author lqq
 * @Date 2025/5/11 10:51
 **/

@Entity
@Data
@Table(name = "db_tag")
@NoArgsConstructor
@AllArgsConstructor
public class SongTag extends BaseDomain {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    //标签名称，如
    @Column(name = "name")
    private String name;

    //user id
    @Column(name = "user_id")
    private Long userId;

    //是否废弃 只能申请人或超管申请废弃 审核通过后可废弃 审核条件：只有自己使用 或无人使用
    @Column(name = "is_deleted")
    private Boolean isDeleted;
}
